import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:sonora/bloc/base/sj_base_state.dart';
import 'package:sonora/models/sj_broad_caster_data.dart';
import 'package:sonora/models/sj_login_response_data.dart';
import 'package:sonora/models/sj_medal_data.dart';
import 'package:sonora/models/sj_works_model.dart';

part 'sj_medal_state.freezed.dart';

@freezed
class SjMedalState extends SjBaseState with _$SjMedalState {
  const factory SjMedalState({
    @Default(false) bool initial,
    @Default(false) bool loading,
    @Default(null) String? errorMsg,
    @Default(null) SjUserDetailData? userInfoData,
    @Default(null) List<SjMedalData>? medalList,
    @Default(null) bool? medal1IsObtain,
    @Default(null) bool? medal1IsUpgrade,
    @Default(null) bool? medal2IsObtain,
    @Default(null) bool? medal2IsUpgrade,
    @Default(null) bool? medal3IsObtain,
    @Default(null) bool? medal3IsUpgrade,
  }) = _SjMedalState;
}